﻿<DockPanel x:Class="HappyBa.Pages.UsersStatisticsPage"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:loc="clr-namespace:HappyBa.Code.Localization"
             xmlns:captioned="clr-namespace:Mnk.Library.WpfControls.Components.Captioned;assembly=Mnk.Library.WpfControls"
             xmlns:components="clr-namespace:Mnk.Library.WpfControls.Components;assembly=Mnk.Library.WpfControls"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <WrapPanel DockPanel.Dock="Top">
        <GroupBox Header="{loc:Tr SelectDates}" Margin="5">
            <StackPanel Orientation="Horizontal" VerticalAlignment="Top">
                <captioned:CaptionedDatePicker Name="From" Caption="{loc:Tr From}" Value="{Binding UsersAnalisys.DatesFrom}" Margin="5"/>
                <captioned:CaptionedDatePicker Name="To" Caption="{loc:Tr To}" Value="{Binding UsersAnalisys.DatesTo}" Margin="5"/>
            </StackPanel>
        </GroupBox>
        <GroupBox Header="{loc:Tr Include}" Margin="5">
            <StackPanel>
                <components:ExtCheckBox Content="{loc:Tr ReportByDaysAndUsers}" IsChecked="{Binding UsersAnalisys.ReportByDaysAndUsers}"/>
                <components:ExtCheckBox Content="{loc:Tr ReportByUsers}" IsChecked="{Binding UsersAnalisys.ReportByUsers}"/>
                <components:ExtCheckBox Content="{loc:Tr ReportTotal}" IsChecked="{Binding UsersAnalisys.ReportTotal}"/>
                <components:ExtCheckBox Content="{loc:Tr Jobs}" IsChecked="{Binding UsersAnalisys.Jobs}"/>
                <components:ExtCheckBox Content="{loc:Tr Tasks}" IsChecked="{Binding UsersAnalisys.Tasks}"/>
            </StackPanel>
        </GroupBox>
        <GroupBox Header="{loc:Tr Settings}" Margin="5">
            <StackPanel>
                <components:ExtCheckBox Content="{loc:Tr GroupJobs}" IsChecked="{Binding UsersAnalisys.GroupJobs}"/>
                <components:ExtCheckBox Content="{loc:Tr GroupTasks}" IsChecked="{Binding UsersAnalisys.GroupTasks}"/>
                <components:ExtCheckBox Content="{loc:Tr RestrictTasksBySelectedInProfile}" IsChecked="{Binding UsersAnalisys.RestrictTasksBySelectedInProfile}"/>
            </StackPanel>
        </GroupBox>
    </WrapPanel>
    <StackPanel VerticalAlignment="Bottom" HorizontalAlignment="Right" Margin="10"  DockPanel.Dock="Bottom" Orientation="Horizontal">
        <Button Content="{loc:Tr Build}" Click="BuildClick" Padding="10 1" Margin="5 0"/>
    </StackPanel>
    <Label/>
</DockPanel>
